package com.ruoyi.eamp.service.impl;

import java.util.List;

import com.ruoyi.eamp.domain.vo.LogAndReAndSrAndDeptVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.eamp.mapper.EampReLogsMapper;
import com.ruoyi.eamp.domain.EampReLogs;
import com.ruoyi.eamp.service.IEampReLogsService;

/**
 * 设备全部记录Service业务层处理
 *
 * @author ruoyi
 * @date 2024-08-12
 */
@Service
public class EampReLogsServiceImpl implements IEampReLogsService
{
    @Autowired
    private EampReLogsMapper eampReLogsMapper;

    /**
     * 查询设备全部记录
     *
     * @param logId 设备全部记录主键
     * @return 设备全部记录
     */
    @Override
    public EampReLogs selectEampReLogsByLogId(Long logId)
    {
        return eampReLogsMapper.selectEampReLogsByLogId(logId);
    }

    /**
     * 查询设备全部记录列表
     *
     * @param eampReLogs 设备全部记录
     * @return 设备全部记录
     */
    @Override
    public List<EampReLogs> selectEampReLogsList(EampReLogs eampReLogs)
    {
        return eampReLogsMapper.selectEampReLogsList(eampReLogs);
    }

    /**
     * 新增设备全部记录
     *
     * @param eampReLogs 设备全部记录
     * @return 结果
     */
    @Override
    public int insertEampReLogs(EampReLogs eampReLogs)
    {
        return eampReLogsMapper.insertEampReLogs(eampReLogs);
    }

    /**
     * 修改设备全部记录
     *
     * @param eampReLogs 设备全部记录
     * @return 结果
     */
    @Override
    public int updateEampReLogs(EampReLogs eampReLogs)
    {
        return eampReLogsMapper.updateEampReLogs(eampReLogs);
    }

    /**
     * 批量删除设备全部记录
     *
     * @param logIds 需要删除的设备全部记录主键
     * @return 结果
     */
    @Override
    public int deleteEampReLogsByLogIds(Long[] logIds)
    {
        return eampReLogsMapper.deleteEampReLogsByLogIds(logIds);
    }

    /**
     * 删除设备全部记录信息
     *
     * @param logId 设备全部记录主键
     * @return 结果
     */
    @Override
    public int deleteEampReLogsByLogId(Long logId)
    {
        return eampReLogsMapper.deleteEampReLogsByLogId(logId);
    }

    @Override
    public List<LogAndReAndSrAndDeptVO> selectEampReLogsListVO() {
        return eampReLogsMapper.selectEampReLogsListVO();
    }
}
